package com.js.nickcar.entity.remote;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by LZY on 2017/10/11.
 */

public class CarInfoBean implements Parcelable {


    private String car_id;
    private String car_type;
    private String car_condition;
    private String seller_price;
    private String reference_price;

    public String getCar_id() {
        return car_id;
    }

    public void setCar_id(String car_id) {
        this.car_id = car_id;
    }

    public String getCar_type() {
        return car_type;
    }

    public void setCar_type(String car_type) {
        this.car_type = car_type;
    }

    public String getCar_condition() {
        return car_condition;
    }

    public void setCar_condition(String car_condition) {
        this.car_condition = car_condition;
    }

    public String getSeller_price() {
        return seller_price;
    }

    public void setSeller_price(String seller_price) {
        this.seller_price = seller_price;
    }

    public String getReference_price() {
        return reference_price;
    }

    public void setReference_price(String reference_price) {
        this.reference_price = reference_price;
    }

    @Override
    public String toString() {
        return "CarInfoBean{" +
                "car_id='" + car_id + '\'' +
                ", car_type='" + car_type + '\'' +
                ", car_condition='" + car_condition + '\'' +
                ", seller_price='" + seller_price + '\'' +
                ", reference_price='" + reference_price + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.car_id);
        dest.writeString(this.car_type);
        dest.writeString(this.car_condition);
        dest.writeString(this.seller_price);
        dest.writeString(this.reference_price);
    }

    public CarInfoBean() {
    }

    protected CarInfoBean(Parcel in) {
        this.car_id = in.readString();
        this.car_type = in.readString();
        this.car_condition = in.readString();
        this.seller_price = in.readString();
        this.reference_price = in.readString();
    }

    public static final Creator<CarInfoBean> CREATOR = new Creator<CarInfoBean>() {
        @Override
        public CarInfoBean createFromParcel(Parcel source) {
            return new CarInfoBean(source);
        }

        @Override
        public CarInfoBean[] newArray(int size) {
            return new CarInfoBean[size];
        }
    };
}
